<?php
$this->breadcrumbs=array(
	'Work Orders'=>array('index'),
	$model->wo_number,
);

$this->menu=array(
	array('label'=>'List WorkOrder', 'url'=>array('index')),
	array('label'=>'Create WorkOrder', 'url'=>array('create')),
	array('label'=>'Update WorkOrder', 'url'=>array('update', 'id'=>$model->id)),
	array('label'=>'Delete WorkOrder', 'url'=>'#', 'linkOptions'=>array('submit'=>array('delete','id'=>$model->id),'confirm'=>'Are you sure you want to delete this item?')),
	array('label'=>'Manage WorkOrder', 'url'=>array('admin')),
);
?>

<h2 class="button-panel-title">
	<div class="button-panel">
		<a href="<?php echo $this->createUrl("workOrder/update/id/{$model->id}"); ?>" class="button edit"><span>Edit</span></a>
		
		<span class="spacer"></span>
		
		<a href="#" id="send_by_email" class="button envelope"><span>Send</span></a>
		
		<span class="spacer"></span>
		
		<a href="<?php echo $this->createUrl("workOrder/receivePo/id/{$model->id}"); ?>" id="accept_estimate" class="button check"><span>Receive</span></a>
				
		<span class="spacer"></span>
		
		<a href="<?php echo $this->createUrl("workOrder/createPdf"); ?>" class="button pdf"><span>PDF</span></a>

		<span class="spacer"></span>
		
		<a href="#" onclick="window.print();" class="button printer"><span>Print</span></a>
	</div>
	
	<span class="title">Work Order: <?php echo $model->wo_number; ?></span>
</h2>

<h1></h1>

<?php echo $this->renderPartial('_view',array(
			'model'=>$model,
			'line_items' => $line_items,
		)); ?>